* Make a new timestamp and set it to the specified time,
* or the current time if unspecified.
*
+ * @since 1.20
+ *
* @param $timestamp bool|string Timestamp to set, or false for current time
*/
public function __construct( $timestamp = false ) {
* Parse the given timestamp into either a DateTime object or a Unix timestamp,
* and then store it.
*
+ * @since 1.20
+ *
* @param $ts string|bool Timestamp to store, or false for now
* @throws TimestampException
*/
* Convert the internal timestamp to the specified format and then
* return it.
*
+ * @since 1.20
+ *
* @param $style int Constant Output format for timestamp
* @throws TimestampException
* @return string The formatted timestamp
* generate a readable timestamp by returning "<N> <units> ago", where the
* largest possible unit is used.
*
+ * @since 1.20
+ *
* @return string Formatted timestamp
*/
public function getHumanTimestamp() {
}
/**
+ * @since 1.20
+ *
* @return string
*/
public function __toString() {
}
}
+/**
+ * @since 1.20
+ */
class TimestampException extends MWException {}